package com.clstu.staticmathod_.final_;

public class FinalExercise {
    public static void main(String[] args) {
        Circle r = new Circle(5);
        System.out.println(r.getArea());
    }
}
class Circle{
    private double radius;
    private final double PI=3.14;//赋值位置（1）初始化

    public Circle(double radius) {
        this.radius = radius;
        //PI=3.14;复制位置（2）构造器
    }
    {
        //PI=3.14;赋值位置（3）代码块

    }
    public double getArea(){
        return PI*radius*radius;
    }
}